'use strict';
/*
  两种网络请求：postRequest => POST, getRequest => GET
  请求头header: 默认json，支持自定义({})或快速写入('form', 'json')
*/

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {
                  default: mod
              };
    };

exports.__esModule = true;

var request_1 = __importDefault(require('../utils/request'));

var request = new request_1['default'](); // 限时抢券  活动页接口

exports.getActivityId = function (params) {
    return request.postRequest({
        url: 'timeLimitedActivityPage/' + params
    });
}; // 限时抢券  获取库存接口

exports.getInventory = function (params) {
    return request.postRequest({
        url: 'timeLimitedActivityPage/getInventory',
        data: params
    });
}; // 限时抢券  抢券接口

exports.getInventoryRob = function (params) {
    return request.postRequest({
        url: 'timeLimitedActivityPage/rob',
        data: params
    });
};
